/**
 *  TinyPasswordManager
 *  Copyright (C) 2008 Gross David <gdavid.devel@gmail.com>
 *
 *  This program is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/

#include "identifier.h"

Identifier::Identifier() {
}

Identifier::Identifier(const std::string &login, const std::string &password, const std::string &description)
	: m_login(login), m_password(password), m_description(description) {
}

std::string Identifier::getLogin() const {
	return m_login;
}

std::string Identifier::getPassword() const {
	return m_password;
}

std::string Identifier::getDescription() const {
	return m_description;
}

void Identifier::setLogin(const std::string &login) {
	m_login = login;
}

void Identifier::setPassword(const std::string &password) {
	m_password = password;
}

void Identifier::setDescription(const std::string &description) {
	m_description = description;
}

bool Identifier::operator==(const Identifier &identifier) {
    return m_login == identifier.m_login && m_password == identifier.m_password
           && m_description == identifier.m_description;
}

bool Identifier::operator!=(const Identifier &identifier) {
    return !(*this == identifier);
}

